﻿@extends('layouts.home')
@section('title')
<title>{{$arts->art_title}}</title>
<meta name="keywords" content="{{$arts->art_tag}}" />
<meta name="description" content="{{$arts->art_description}}" />
@endsection
@section('content')
<article class="blogs">
  <h1 class="t_nav"><span>您当前的位置：<a href="/">首页</a>&nbsp;&gt;&nbsp;<a href="{{url('cate/'.$arts->cate_id)}}">{{$arts->cate_name}}</a>&nbsp;&gt;&nbsp;<a href="{{url('cate/'.$arts->cate_id)}}">{{$arts->cate_name}}</a></span><a href="/" class="n1">网站首页</a><a href="/" class="n2">日记</a></h1>
  <div class="index_about">

    <h2 class="c_titile">{{$arts->art_title}}</h2>
    <p class="box_c"><span class="d_time">发布时间：{{date('Y-m-d',$arts->art_time)}}</span><span>编辑：{{$arts->art_editor}}</span><span>查看次数：{{$arts->art_view}}</span></p>
    <ul class="infos">
     {!! $arts->art_content !!}
    </ul>
    <div class="keybq">
    <p><span>关键字词</span>：{{$arts->art_tag}}</p>
    
    </div>
    <div class="ad"> </div>
    <div class="nextinfo">
      @if($pre)
       <p>上一篇：<a href="{{url('a/'.$pre->art_id)}}">{{$pre->art_title}}</a></p>
      @else
        <p>没有上一篇了</p>
      @endif

        @if($next)
          <p>下一篇：<a href="{{url('a/'.$next->art_id)}}">{{$next->art_title}}</a></p>
        @else
          <p>没有下一篇了</p>
        @endif

    </div>
    <div class="otherlink">
      <h2>相关文章</h2>
      <ul>
        @foreach($same as $k=>$v)
       <li><a href="{{url('a/'.$v->art_id)}}" title="{{$v->art_title}}">{{$v->art_title}}</a></li>
          @endforeach
      </ul>
    </div>
  </div>
  <aside class="right">
    <!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script> 
    <script type="text/javascript" id="bdshell_js"></script> 
    <script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script> 
    <!-- Baidu Button END -->
    <div class="blank"></div>
    <div class="news">
     @parent
    </div>
  </aside>
</article>
@endsection